all : discovery registry
registry : registry.cc message.pb.cc
	g++ -o $@  $^ -std=c++17 -L/usr/local/openssl-1.0.2/lib -lspdlog -lfmt -lgflags -letcd-cpp-api -lcpprest -lbrpc -lssl -lcrypto -lprotobuf -lleveldb
discovery : discovery.cc message.pb.cc
	g++ -o $@  $^ -std=c++17 -L/usr/local/openssl-1.0.2/lib -lspdlog -lfmt -lgflags -letcd-cpp-api -lcpprest -lbrpc -lssl -lcrypto -lprotobuf -lleveldb

PHONY:clean
clean:
	rm discovery registry